//导入路由
import { BrowserRouter as Router, Route } from 'react-router-dom'

// 导入页面组件
import Login from './pages/Login'
import Layout from './pages/Layout'

// 配置路由规则
function App() {
	return (
		<Router>
			<div className='app'>
				{/* 测试路由切换 */}
				{/* <Link to="/login">登录页</Link>
            <Link to="/home">后台首页</Link> */}

				{/* 配置路由 */}
				<Route path='/login' component={Login}></Route>
				<Route path='/home' component={Layout}></Route>
			</div>
		</Router>
	)
}

export default App
